module.exports = {
	getTime(n) {
		let hour = this.add0(Math.floor(n / 3600)); //获取小时
		let minute = this.add0(Math.floor((n % 3600) / 60)); //获取分钟
		let sec = this.add0(Math.floor(n % 60)); //获取秒数

		return `${hour}:${minute}:${sec}`;
	},
	// 补0函数
	add0(n) {
		return n < 10 ? "0" + n : n;
	},
};
